package com.woniu.smallmedical.mapper;

import com.woniu.smallmedical.entity.StorageMessage;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface StoragemessageMapper {

      //修改采购金额
    void updtemessage(String number,Double purchase,Double retail);

    //分页查所有药
    List<StorageMessage> selectAll(@Param("pageIndex") Integer pageIndex,
                                   @Param("pageSize") Integer pageSize);

    //增加药品
    void insertmessages(Integer stid, String number, Date storagedate,String storagepeople,String type,String vendor,Double purchase,Double retail,Date makedate,String makepeoople,String remark);



    //查询所有条数
    int selectcount();
    //通过单号查订单
    StorageMessage selectDan(String number);


    //通过id查对象
   StorageMessage selectByid(Integer stid);


    //查询编号
    List<StorageMessage> SelctNumberName(String storagepeople,@Param("pageIndex") Integer pageIndex,
                                     @Param("pageSize") Integer pageSize);
}
